package com.huatec.hiot_cloud.core.dao;

import com.huatec.hiot_cloud.core.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserDao {
    public int saveForRegister(User user);
    public User findById(String id);
    public List<User> findAll();
    public int updatePassword(User user);
    public int delete(String id);
    public String findUsername(String username);
    public User findUserByUsername(String username);
    String findEmail(String email);

    public int updateLastLogin(User user);

    int updateImg(User user);

    int findAllCount();

    List<User> findAllUser(Map<String, Object> parmMap);
}
